<%- include('header') %>

<!-- user 内容 -->
<div class="user-content mt-50">
  <div class="container">
    <div class="row">
      <div class="col-xs-12 col-md-3">
        <%- include('user-info',{user}) %>
      </div>
      <!-- 右侧文章列表 -->
      <div class="col-xs-12 col-md-9">
        <div class="container-fluid ">
          <div class="row">
            <% if (!posts || posts.length<1) { %>
            <p class="text-align-center mt-100 ">还没有发表文章</p>
            <% } else { %>
            <% posts.forEach(post =>{ %>
            <%- include('post-list',{post}) %>
            <%  })%>
            <%  }%>
          </div>
        </div>
        <%# 分页器 %>
        <% if (posts && posts.length >1) { %>
        <%- include('pager',{async:false}) %>

        <% } %>
      </div>
      <!-- 右侧文章列表结束 -->
    </div>
  </div>
</div>
<!-- user内容结束 -->

<%- include('footer')  %>
